package com.ternnetwork.core.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ternnetwork.commons.model.http.BaseResponse;
import com.ternnetwork.core.service.UserRoleService;

@Controller
@RequestMapping("/core/user/role/*")
public class UserRoleController {
	
	@Resource
	private UserRoleService userRoleService;
	
	@RequestMapping("update.htm")
	public  @ResponseBody BaseResponse update(long userId,String roleIds,String deleteRoleIds){
		return userRoleService.idoUpdate(userId, roleIds, deleteRoleIds);
	}
	

}
